﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using System.ServiceModel;
using GenericModels;

namespace WcfTicketsLibrary
{
    [ServiceContract]   
     public interface IBooking
     {
        [OperationContract]
        Booking GetBookingById(int id);

        [OperationContract]
        Booking InsertBooking(Booking booking);

        [OperationContract]
        PartBooking InsertPartBooking(PartBooking part);

        [OperationContract]
        bool DeletePartBooking(Booking booking, PartBooking part);

        [OperationContract]
        Booking CreateLocalBooking();

        [OperationContract]
        PartBooking CreateLocalPartBooking();
    }
}
